/*
 * ConstantesGenerales.java
 *
 * Created on August 13, 2007, 6:23 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.computec.baseem.constantes;

import com.computec.baseem.source.BaseEmWebSource;
import java.util.Locale;



/**
 *
 * @author FSanchez
 */
public class ConstantesGenerales {
    protected static ConstantesGenerales instance;
    
    //aocampo
    public static Locale LOCALE_DEFAULT = Locale.getDefault();
    
    public static String FACTORYDAO_CLASSNAME;
    public static String SCHEMA;
    public static String USUARIO_COMPUTEC;
    public static String FILE_ORIGEN;
  
    
    
    /** Creates a new instance of ConstantesGenerales */
    public ConstantesGenerales() {
	BaseEmWebSource baseEmWebSource=BaseEmWebSource.getInstance();
        
        // aocampo
        this.LOCALE_DEFAULT.setDefault(new Locale("es", "CO"));
	
	this.FACTORYDAO_CLASSNAME       = baseEmWebSource.getBaseEmWebSetupKey("DaoFactoryClassName");  
        this.SCHEMA                     = baseEmWebSource.getBaseEmWebSetupKey("schema");  
	this.USUARIO_COMPUTEC		= baseEmWebSource.getBaseEmWebSetupKey("usuarioComputec");  
	this.FILE_ORIGEN		= baseEmWebSource.getBaseEmWebSetupKey("fileOrigen");  
	
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}
